﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StaffContactSearchUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.StaffContact.StaffContactSearch.StaffContactSearchUserControl" %>
<div>
    <table class="main">
        <tr>
            <td valign="top" runat="server" id="tdContent">
                <table class="content" width="98%">
                    <tr>
                        <td style="padding: 5px;">
                            <table width="100%" class="title">
                                <tr>
                                    <td width="60%">
                                        <h2 class="title">
                                            <img src="/_layouts/JM.JCY.Resource/images/联系人小.png" width="24" />
                                            搜索通讯录
                                        </h2>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <hr />
                            <table width="100%" class="form">
                                <tr>
                                    <td>
                                        姓名
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtName" runat="server">
                                        </asp:TextBox>
                                        <asp:ImageButton ID="imgSearch" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/search_2.jpg"
                                            OnClick="imgSearch_Click" />
                                    </td>
                                </tr>
                            </table>
                            <table width="100%" class="list">
                                <tr>
                                    <td>
                                        <asp:GridView ID="gvStaffContact" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
                                            GridLines="Horizontal" CssClass="altrowstablebc" Width="100%" EnableModelValidation="True"
                                            AllowPaging="true" PageSize="20" OnPageIndexChanging="gvStaffContact_PageIndexChanging">
                                            <Columns>
                                                <asp:TemplateField HeaderText="姓名" ItemStyle-Width="15%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="15%"></ItemStyle>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="部门科室" ItemStyle-Width="15%">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffDept" runat="server" Text='<%# Eval("DeptName") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="15%"></ItemStyle>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="职位" ItemStyle-Width="15%">
                                                    <ItemStyle Width="15%"></ItemStyle>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffJobTitle" runat="server" Text='<%# Eval("JobTitle") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="办公室" ItemStyle-Width="15%">
                                                    <ItemStyle Width="15%"></ItemStyle>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffOffice" runat="server" Text='<%#Eval("OfficeAddress")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="办公室电话" ItemStyle-Width="15%">
                                                    <ItemStyle Width="15%"></ItemStyle>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffOfficeNumber" runat="server" Text='<%#Eval("OfficeNumber")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="电子邮件">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStaffEmail" runat="server" Text='<%#Eval("Email")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <img src="/_layouts/JM.JCY.Resource/images/back_Link.png" width="12" />
                                        <a href="#" onclick="javascript:window.history.go(-1)">返回</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
